\frame[containsverbatim]
{
  \frametitle{Test code}
{\scriptsize
\begin{verbatim}
public class TestSGC {
  protected void finalize() throws Throwable {
    System.gc(); // very bad
  }
  
  public void test() {
    System.gc(); // dumb
  }
  
  public static void main(String[] args) {
      System.gc(); // maybe this is ok; don't report a warning
  }
}
\end{verbatim}
}
}
